<?php

function ReadXml($xmlstr){
	
	$xmlstr= '<Address><to>James</to><from>Jani</from><heading>Reminder</heading><body>Please check your mail.</body></Address>' ;
	
	$preg = "#<(.*)>#iUs";

	preg_match_all($preg, $xmlstr, $rs);

	print_r($rs);



}

?>